import { post,postnoloading,get,jsonPost} from '@api/base'

//选择号别
export function getDoctors(params) {
   return jsonPost({ url: '/register/model1/getDoctors',
    method: 'post',
    params ,
	timeout: 10000
  })
}

//选择科室
export function getDepartment(params) {
   return jsonPost({ url: '/register/model1/getDepts',
    method: 'post',
    params ,
	timeout: 10000
  })
}


//选择医生
export function getDoctor(params) {
   return jsonPost({ url: '/register/model1/getRegDoctorList',
    method: 'post',
    params,
	timeout: 10000
  })
}

//获取全部排班信息
export function getRegInfo(params) {
   return jsonPost({ url: '/register/model1/getPeriodInfo',
    method: 'post',
    params,
	timeout: 10000
  })
}

//锁号 提交门诊预约表单
export function lockReg(params) {
   return jsonPost({ url: '/register/model1/lockReg',
    method: 'post',
    params,
	timeout: 10000
  })
}

//获取医生列表
export function registerSource(params) {
   return jsonPost({ url: '/register/model1/registerSource',
    method: 'post',
    params,
	timeout: 10000
  })
}

//获取排班日期 可以选择的列表
export function getDays(params) {
   return jsonPost({ url: '/register/model1/getDays',
    method: 'post',
    params,
	timeout: 10000
  })
}

//预约挂号支付成功 向后端请求  只有挂号
export function registerSuccess(params) {
   return jsonPost({ url: '/register/model1/register',
    method: 'post',
    params,
	timeout: 10000
  })
}

//预约挂号锁号成功调用 只有预约
export function registerPre(params) {
   return jsonPost({ url: '/register/model1/registerPre',
    method: 'post',
    params,
	timeout: 10000
  })
}

//预约挂号锁号前调用
export function regCheckUp(params) {
   return jsonPost({ url: '/register/model1/regCheckUp',
    method: 'post',
    params,
	timeout: 10000
  })
}

//获取优惠价格 锁号之前调用 regCheckUp之后调用
export function preferentialInfo(params) {
   return jsonPost({ url: '/register/model1/preferentialInfo',
    method: 'post',
    params,
	timeout: 10000
  })
}


//获取打印小票预约挂号信息
export function getRegisterInfo(params) {
   return jsonPost({ url: '/register/model1/registerInfo',
    method: 'post',
    params,
	timeout: 10000
  })
}

//解锁号源 获取支付状态报错的时候调用
export function unlockReg(params) {
   return jsonPost({ url: '/register/model1/unlockReg',
    method: 'post',
    params,
	timeout: 10000
  })
}
//查询七天内有排班的医生接口
export function getDoctorsIn7Days(params) {
   return jsonPost({ url: '/register/model1/getDoctorsIn7Days',
    method: 'post',
    params,
	timeout: 10000
  })
}











